<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
?>
<?php foreach($this->items as $i => $item): 
	$item->slug	= $item->alias ? ($item->id.':'.$item->alias) : $item->id;
	$link = JRoute::_('index.php?option=com_restaurantmanage&view=zdish&id='. $item->slug);
?>
  	<tr class="row<?php echo $i % 2; ?>">
		<td>
			<?php echo $item->id; ?>
		</td>
		<td>
			<?php echo $item->alias; ?>
		</td>
		 <td>
		 	<?php echo $item->name ?>
		 </td>
		 <td>
		 	<?php echo $item->description ?>
		 </td>
		 <td>
		 	<button onclick="window.location.href='<?php echo $link ?>'" style="font-size: smaller">
		 		<?php echo JText::_('COM_RESTAURANTMANAGE_DISHS_DETAIL'); ?>
		 	</button>
		 </td>
	</tr>
<?php endforeach; ?>

						
				
